﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenApi.Configuration
{
	/// <summary>
	/// 默认配置
	/// </summary>
	public class DefaultElement : ConfigurationElement
	{
		/// <summary>
		/// 端口
		/// </summary>
		[ConfigurationProperty("port", DefaultValue = 10080)]
		public int Port
		{
			get
			{
				return (int)this["port"];
			}
			set
			{
				this["port"] = value;
			}
		}

		/// <summary>
		/// 认证
		/// </summary>
		[ConfigurationProperty("authType")]
		public string AuthType
		{
			get
			{
				return (string)this["authType"];
			}
			set
			{
				this["authType"] = value;
			}
		}
	}
}
